package com.ruoyi.web.controller.shop.imgs.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 店铺图片对象 shop_images
 * 
 * @author ruoyi
 * @date 2020-10-17
 */
public class ShopImages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 关联id（店铺或商品） */
    @Excel(name = "关联id", readConverterExp = "店=铺或商品")
    private String linkId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgurl;

    /** 位置(0-店铺主轮播图片，1-店铺内部环境,2-店铺外部环境,3商品轮播图，4-商品详情图片片) */
    @Excel(name = "位置(0-店铺主轮播图片，1-店铺内部环境,2-店铺外部环境,3商品轮播图，4-商品详情图片片)")
    private Integer address;

    /** 审核状态，0-审核中，1-审核成功，2-审核失败 */
    @Excel(name = "审核状态，0-审核中，1-审核成功，2-审核失败")
    private Integer status;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long createId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;
    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;
    /** 备注 **/
    private String notes;

    /** 删除标记 */
    private Integer delFlag;
    /**店铺ID**/
    private String shopId;
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setLinkId(String linkId) 
    {
        this.linkId = linkId;
    }

    public String getLinkId() 
    {
        return linkId;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setAddress(Integer address)
    {
        this.address = address;
    }

    public Integer getAddress()
    {
        return address;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreateId(Long createId)
    {
        this.createId = createId;
    }

    public Long getCreateId()
    {
        return createId;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("linkId", getLinkId())
            .append("imgurl", getImgurl())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("createId", getCreateId())
            .append("createAt", getCreateAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
